package sk.stuba.fiit.ltasys.web.mvc.model.service;

import java.util.Collection;

import sk.stuba.fiit.ltasys.web.mvc.model.entity.UserEntity;


/**
 * Document Service interface.
 * 
 * @author Marek Hruska
 */
public interface UserService {

    /**
     * Find users.
     */
    public Collection<UserEntity> findUsers();
    
    /**
     * Delete user.
     */
    public void delete(UserEntity userEntity);
    
    /**
     * Save user.
     */
    public void save(UserEntity userEntity);
    
    /**
     * Find user by id.
     */
    public UserEntity findUserById(String id);


    /**
     * Delete user by id.
     */
	public void deleteByUserName(String string);


    /**
     * Find user by username (because it is Unique).
     */
	public UserEntity findUserByUserName(String username);
}

